import Cookie from "react-cookies";
export function loginApi() {
  const date = new Date(new Date().getTime() + 1000 * 60 * 30);
  Cookie.save("userinfo", { name: "张三" }, { expires: date });
  
}
export function logoutApi() {
  Cookie.remove("userinfo");
  
}   
